package com.mengxuegu.springboot.entities;

public class Result<T> {

    private String code;
    private Object data;
    private String message;

    private Integer count;
    private T extend;

    public Result() { }

    public Result(String code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    public Result(String code, String message, Integer count) {
        this.code = code;
        this.message = message;
        this.count=count;
    }
    public Result(String code, String message) {
        this.code = code;
        this.message = message;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getExtend() {
        return extend;
    }

    public void setExtend(T extend) {
        this.extend = extend;
    }
}
